//产品页面的状态管理

//improt request from '@/utils/request'
import axios from '@/utils/axios'



var state={
    list:[]
}

/* var getters={
    list:state=>state.list
} */

var mutations={
    setlist(state,data){
        state.list=data;
    }
}

var actions={
    getall(context){
        /* var obj={
            id:1,
            name:'lisi'
        } */

        axios.get("/category/findAll").then(response=>{
                 context.commit("setlist",response.data);
        });

       
    }

}





export default{
    state,
    mutations,
    actions
    
}